package io;

import java.io.*;
import java.util.stream.Stream;
import java.util.zip.InflaterOutputStream;

public class Echo {
    public static void main(String[] args) throws InterruptedException {

       /* new BufferedReader(
                new InputStreamReader(System.in)).lines().forEach(System.out::println);
        */

        /*PrintWriter printWriter = new PrintWriter(System.out, true);
        printWriter.println("hello world");*/

        try (
                BufferedInputStream bis = new BufferedInputStream(
                        new FileInputStream("D:\\test\\java\\src\\main\\java\\io\\FileOutputShortcut.dat")
                );
                PrintStream ps = new PrintStream(new BufferedOutputStream(
                        new FileOutputStream("D:\\test\\java\\src\\main\\java\\io\\FileOutputShortcut.dat")
                ));
        ) {
            System.setIn(bis);

            new BufferedReader(
                    new InputStreamReader(
                            System.in
                    )
            ).lines().forEach(System.out::println);


        } catch (Exception e
        ) {

            throw new RuntimeException(e);

        } finally {

        }



    }
}
